package com.linwen.javase.desgin_pattern.action.observer;

/**
 * @ClassName ObserverTest
 * @Description
 * @Author lin
 * @Date 2022/6/29 上午1:50
 * @Version V1.0
 */
public class ObserverTest {
    public static void main(String[] args) {
        Subject subject = new ConcreteSubject();
        Observer obs1 = new ConcreteObserver1();
        Observer obs2 = new ConcreteObserver2();
        subject.add(obs1);
        subject.add(obs2);
        subject.notifyObserver();
    }
}
